package com.jl.scr;

public class OtherScr extends SCR {
	private String data;

	public OtherScr(String data) {
		this.data = data;
	}

	@Override
	public String toString() {
		return data + "\n";
	}

	@Override
	public boolean equals(Object obj) {
		if (obj == this) {
			return true;
		} else if (!(obj instanceof OtherScr)) {
			return false;
		} else {
			OtherScr other = (OtherScr) obj;
			if (other.toString().equalsIgnoreCase(this.toString())) {
				return true;
			} else {
				return false;
			}
		}
	}

	@Override
	public int hashCode() {
		return this.data.hashCode();
	}

}
